﻿using System.Runtime.Serialization;
using Domep.Server.BusinessObjects;

namespace Domep.Server.Contracts
{
    [DataContract]
    public class FunctionalityPresentation
    {

        #region attributes

        [DataMember]
        private string name;
        [DataMember]
        private string description;

        #endregion

        #region properties

        public string Name { get { return name; } }
        public string Description { get { return description; } }

        #endregion

        public FunctionalityPresentation(string name, string description)
        {
            this.name = name;
            this.description = description;
        }
        public FunctionalityPresentation(Functionality f) : this(f.Name, f.Description) { }
    }
}